package com.cqemme.messageservice.config;
import com.cqemme.comm.constraint.MqNames;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author amkj
 */
@Configuration
public class RabbitConfiguration {
    @Bean
    public Queue queue() {
        return new Queue(MqNames.SCHOOL_ALL_TO_MESSAGE_SYSTEM_EMAIL);
    }

    @Bean
    public Queue noteQueue() {
        return new Queue(MqNames.SEND_MESSAGE_MQ);
    }

}
